package com.example.controller;

import com.example.entity.EasybuyProductCategory;
import com.example.service.EasybuyProductCategoryMapperService;
import com.example.util.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EasybuyProductCategoryController {

    @Autowired
    public EasybuyProductCategoryMapperService easybuyProductCategoryMapperService;

    @RequestMapping(value = "type")
    public RespBean findAlltype (Integer id){
//        List<EasybuyProductCategory> alltype = easybuyProductCategoryMapperService.findAlltype(type);

        List<EasybuyProductCategory> allid = easybuyProductCategoryMapperService.findAllid(id);
        return RespBean.ok("查询成功",allid);
    }

}
